package com.xiaotu.service.sw.impl;

import com.xiaotu.dao.sw.SwErrorCorrectionMapper;
import com.xiaotu.service.sw.SwErrorCorrectionService;
import com.xiaotu.vo.SwErrorCorrectionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangxiao
 * @create 2021-10-09 15:59
 */
@Service
public class SwErrorCorrectionServiceImpl implements SwErrorCorrectionService {

    @Autowired
    private SwErrorCorrectionMapper swErrorCorrectionMapper;

    @Override
    public List<SwErrorCorrectionVo> getErrorCorrections(Integer handleStatus) {
        return swErrorCorrectionMapper.getErrorCorrections(handleStatus);
    }

    @Override
    public void handleErrorCorrections(String errorIds, Integer handleStatus) {
        swErrorCorrectionMapper.handleErrorCorrections(errorIds.split(","), handleStatus);
    }

}
